# 猜拳游戏
# 1：代表⽯头／2：代表剪⼑／3：代表布
# 从控制台输⼊要出的拳，输入1或2或3；
# 电脑随机出拳；
# 比较胜负。

import random

pc = random.randint(1, 3)

a1 = None;
if pc == 1:
    a1 = "石头"
elif pc == 2:
    a1 = "剪刀"
else:
    a1 = "布"

a = input("请输入要出的⽯头\剪⼑\布")  # 1：代表⽯头／2：代表剪⼑／3：代表布

if (a1 == "⽯头" and a == "布") or (a1 == "剪⼑" and a == "⽯头") or (a1 == "布" and a == "剪⼑"):
    print("电脑出的数是%s,我出的是%s,我赢了" % (a1, a))
elif pc == a:
    print("平局")
else:
    print("电脑出的数是%s,我出的是%s,我输了" % (a1, a))
